package com.wiki.gds.backstage.admin.controller.sys;


import com.wiki.gds.base.common.dto.ResponseDto;
import com.wiki.gds.base.common.exception.BizExceptionEnum;
import com.wiki.gds.base.common.utils.ResponseDtoFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/")
@RestController
public class MainController {

    @RequestMapping("index")
    public ResponseDto index(){
        ResponseDto rs= ResponseDtoFactory.GetInstance().build(BizExceptionEnum.SUCCESSFUL_OPERATION);
        return rs;
    }

    @RequestMapping("test111")
    public ResponseDto test111(){
        ResponseDto rs= ResponseDtoFactory.GetInstance().build(BizExceptionEnum.SUCCESSFUL_OPERATION);
        rs.setData("test111");
        return rs;
    }

    @RequestMapping("test222")
    public ResponseDto test222(){
        ResponseDto rs= ResponseDtoFactory.GetInstance().build(BizExceptionEnum.SUCCESSFUL_OPERATION);
        rs.setData("test222");
        return rs;
    }


    public ResponseDto getMenu(){
        ResponseDto rs= ResponseDtoFactory.GetInstance().build(BizExceptionEnum.SUCCESSFUL_OPERATION);
        rs.setData("test222");
        return rs;

    }
}
